package com.trans.asserts;

import com.trans.exceptions.TransException;

/**
 * @Author xwduo
 * @Description //TODO
 * @Date 2023-06-05 09:50
 */
public class Assert {

    public static void isTrue(boolean flag,String msg){
        if( ! flag ){
            throw new TransException(msg);
        }
    }

    public static void notNull(Object obj,String msg){
        if( null == obj ){
            throw new TransException(msg);
        }
    }
}
